package com.xnyzc.lhy.order.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.order.entity.cms.driver.DriverUserInfo;
import com.xnyzc.lhy.order.entity.user.OaDUser;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.*;

/**
 * <p>
 * 用户基础表 Mapper 接口
 * </p>
 *
 * @author lhy@xnyzc.com
 * @since 2019-07-18
 */
public interface OaDUserMapper extends BaseMapper<OaDUser> {

    /**
     * 获取司机个人中心
     * @param driverId
     * @return
     */
    Map<String, Object> queryDriverInfo(@Param("driverId") Long driverId);

    /**
     * 获取司机车辆资料
     */
    Map<String, Object> queryCarDetails(@Param("driverId") Long driverId);

    /**
     * 获取司机手机号
     */
    Map<String, Object> queryDriverPhone(@Param("driverId")Long driverId);

    /**
     * 获取司机手机号
     * @param driverId 司机ID
     * @return String
     */
     String getDriverPhone(@Param("driverId")String driverId);

    /**
     * 获取司机信息
     */
    Map<String, Object> queryDriverDetail(@Param("phone") String phone);


    /**
     * 根据司机ID查询司机基础信息
     * @return
     */
    Map<String,Object> queryDriverInfoByDriverId(@Param("driverId") Long driverId);

}
